//
//  VerticalChangeTabCollectionViewCell.m
//  TransportCar
//
//  Created by 张吉旭 on 2017/11/15.
//  Copyright © 2017年 amplity. All rights reserved.
//

#import "VerticalChangeTabCollectionViewCell.h"

@interface VerticalChangeTabCollectionViewCell()
{
    UILabel * titleLab;
}

@end

@implementation VerticalChangeTabCollectionViewCell



-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self makeUI];
    }
    
    return self;
}

-(void)makeUI
{
    self.backgroundColor = [UIColor greenColor];
    titleLab = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 100, 50)];
    [self addSubview:titleLab];
}


+ (CGSize)cellSizeAtIndexPath:(NSIndexPath *)indexPath{
    
    
    return CGSizeMake(100, 50);
}


// 设置选中选中
-(void)setSelected:(BOOL)selected {
    if (selected) {
        self.backgroundColor = HEXCOLOR(@"0xececec",1);
    } else {
        self.backgroundColor = [UIColor greenColor];
    }
}

-(void)setDataModelForCell:(NSString*)titleStr
{
    titleLab.text = titleStr;
}


@end
